package com.ls.controller.user.model;

import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;

import javax.validation.constraints.NotBlank;
import javax.validation.constraints.NotNull;


/**
 * @ClassName UpdatePwdModel
 * @Description 修改密码model
 * @Author pengyu
 * @Date 2020/5/25 17:14
 * @Version 1.0
 **/
@Data
@NoArgsConstructor
@AllArgsConstructor
@Builder
public class UpdatePwdModel {

    @NotNull(message = "密码不得为空")
    private String oldPassword;

    @NotBlank(message = "新密码不得为空")
    private String newPassword;
}
